import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import request from '@/utils/request'

import eventBus from '@/utils/eventBus'

import 'amfe-flexible'

// vant 组件
import '@/utils/vant-ui'

import { getRelativeTime } from '@/utils/date-time'
Vue.filter('relative', getRelativeTime)

// css 样式,自定义的样式要在下面，权重高
import '@/styles/index.scss'

Vue.prototype.$request = request
Vue.prototype.$eventBus = eventBus

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
